<script setup name="App" lang="ts">
import { ref } from 'vue';

const mouse = ref({
  x: 0,
  y: 0
})

const move = (e: MouseEvent) => {
  mouse.value.x = e.pageX
  mouse.value.y = e.pageY
}
</script>
<template>
  <div>
    <p>x: {{mouse.x}}</p>
    <p>y: {{mouse.y}}</p>
    <h1 @mousemove="move">test</h1>
  </div>
</template>
